//
//  VersionViewController.m
//  MemberProject
//
//  Created by macbook on 15/4/14.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import "VersionViewController.h"
#import "AppDelegate.h"
@interface VersionViewController ()
@property (weak, nonatomic) IBOutlet UILabel *label;

@end

@implementation VersionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"当前版本";

    
    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    // app版本
    NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
    
    NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];
    
    NSString *appInfo=[NSString stringWithFormat:@"%@.%@",app_Version,app_build];
    self.label.text=appInfo;
    
    [[AppDelegate getInstance] checkVersion];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
